import { createRouter, createWebHistory } from 'vue-router';
const routes = [
    {
        path: '/', // 根路径
        name: 'Home',
        component: () => import('../views/Home.vue')
    },
    {
        path: '/info', // 根路径
        name: 'Info',
        component: () => import('../views/explore/Info.vue')
    },
    {
        path: '/login', // 登录页面路径
        name: 'login',
        component: () => import('../views/Login.vue')
    },
    {
        path: '/choose', // 探索页面路径
        name: 'choose',
        component: () => import('../views/explore/Choose.vue')
    },
    {
        path: '/music', // 课程详情页面路径
        name: 'music',
        component: () => import('../views/explore/Music.vue')
    },
    {
        path: '/recharge', // 会员充值页面路径
        name: 'recharge',
        component: () => import('../views/explore/Recharge.vue')
    },
    {
        path: '/tan', // 会员充值页面路径
        name: 'tan',
        component: () => import('../views/explore/Tan.vue')
    },
    {
        path: '/pl', // 会员充值页面路径
        name: 'pl',
        component: () => import('../views/explore/Context.vue')
    },
];

const router = createRouter({
    history: createWebHistory(), // 使用 HTML5 历史模式
    routes, // 路由配置
});

export default router;